package com.yangfan.cloudalibaba.service.impl;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.yangfan.cloudalibaba.service.SentinelService;
import org.springframework.stereotype.Service;


@Service
public class SentinelServiceImpl implements SentinelService {

//  @SentinelResource(value = "sayHello",blockHandler = "sayHelloFallback")
    public String sayHello(String name) {
        return "Hello, " + name;
    }


//    public String sayHelloFallback(String name){
//        return "服务已经被降级了 " + name;
//    }

}
